<?php
function conectar()
{
	$link=mysql_connect("localhost","root","");
	mysql_select_db("base",$link);
}
function select($string)
{
	conectar();
	$sql="select * from `$string` where Activo=1";
	return mysql_query($sql);
}
function eliminar($string)
{	
	conectar();
	$sql="UPDATE `tipos_tel` SET `Activo`=0 WHERE `id_tipo_tel`=$string";
	if(mysql_query($sql))
	{
		return 1;
	}
	else
	{
		return 0;
	}
}
function select_1($string,$id,$idvalue)
{
	conectar();
	$sql="select * from $string where $id=$idvalue";
	return mysql_query($sql);
}
/*function select($string,$activo)
{
	conectar();
	$sql="select * from $string where activo=$activo";
	return mysql_query($sql);
}*/
?>